<?php
include "../Classes/class.Roles_class.php";
$roles= new Roles_class();
$roles->listar();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sin título</title>
<?php include "../scripts.html";?>
<script type="text/javascript">
	$(function(){
		$("#form1").ajaxForm(function(){
		});
		$("#button").button({
			text:true,
			icon:{
				primary:"ui-icon-circle-plus"}
		});
		});
</script>
<style type="text/css">
body,td,th {
	font-size: 18px;
}
</style>
</head>

<body>
<form id="form1" name="form1" method="post" action="accion_alta_usuario.php" class="ui-state-default">
<table width="316" border="0">
  <tr>
    <td width="160">Nombre:</td>
    <td width="140"><label for="nom_usu"></label>
    <input type="text" name="nom_usu" id="nom_usu" /></td>
  </tr>
  <tr>
    <td>Apellido:</td>
    <td><label for="ape_usu"></label>
    <input type="text" name="ape_usu" id="ape_usu" /></td>
  </tr>
  <tr>
    <td>E-Mail:</td>
    <td><label for="mail_usu"></label>
    <input type="text" name="mail_usu" id="mail_usu" /></td>
  </tr>
  <tr>
    <td>Nick:</td>
    <td><label for="nick_usu"></label>
    <input type="text" name="nick_usu" id="nick_usu" /></td>
  </tr>
  <tr>
    <td>Password:</td>
    <td><label for="pass_usu"></label>
    <input type="password" name="pass_usu" id="pass_usu" /></td>
  </tr>
  <tr>
    <td>Confirmar Password:</td>
    <td><label for="confpass_usu"></label>
    <input type="password" name="confpass_usu" id="confpass_usu" /></td>
  </tr>
  <tr>
    <td>Telefono:</td>
    <td><label for="tel_usu"></label>
    <input type="text" name="tel_usu" id="tel_usu" /></td>
  </tr>
  <tr>
  	<td>Rol:</td>
    <td>
    <label for="rol_usu"></label>
      <select name="rol_usu" id="rol_usu" class="ui-state-default">
      <?php
	  while($roles->devolver_proximo()){
		  ?>
        <option value=<?php echo $roles->getid_rol(); ?>><?php echo $roles->getrol(); ?></option>
   		<?php
	  }
	  ?>
      </select></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td align="right"><input type="submit" name="button" id="button" value="Cargar" /></td>
  </tr>
    <tr>    
    <td align="left"><a href="../Menu/menu.html"><input name="volver" type="submit" class="ui-button-text" id="volver" value="Volver a menu" /></a></td>
  </tr>
</table>
</form>
</body>
</html>